package com.hs.srm.admin.modules.warehouse.service.impl;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.hs.srm.admin.modules.orders.entity.DeliverEntity;
import com.hs.srm.admin.modules.warehouse.dao.ReceiptDao;
import com.hs.srm.admin.modules.warehouse.service.ReceiptService;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 *
 * @Description:
 * @Author socik
 * @date 2019/5/5 14:40
 */
@Service("receiptService")
public class ReceiptServiceImpl  extends ServiceImpl<ReceiptDao, DeliverEntity> implements ReceiptService {
    /**
     *
     * @Description selectByFph
     * @Param [deliverNo]
     * @Return  java.util.List<com.hs.srm.admin.modules.orders.entity.DeliverEntity>
     * @Author  socik
     * @Date 2019/5/5 14:40
     */
    @Override
    public List<DeliverEntity> selectByFph(String deliverNo) {
        EntityWrapper<DeliverEntity> queryWrapper = new EntityWrapper<DeliverEntity>();
        queryWrapper.eq("deliver_no",deliverNo);
        List<DeliverEntity> list=this.selectList(queryWrapper);
        if(list.size()>0){
            return list;
        }
        return null;
    }
}
